package com.beone.smart.smartBeauty.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Created by bruce on 20/2/24 -- 16:17
 */
@Data
public class UserDto {
    private String name;
    private String url;
    private String area;
    private String phone;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime joinDatetime;

    public UserDto(String name, String url, String area, String phone, LocalDateTime joinDatetime) {
        this.name = name;
        this.url = url;
        this.area = area;
        this.phone = phone;
        this.joinDatetime = joinDatetime;
    }

    public UserDto() {
    }
}
